#include <stdio.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(void)
 {
 	int x;
 	scanf ("%d",&x);
 	printf ("%d;,%o;%x\n",x,x,x);
 	printf ("%d;%#o;%#x",x,x,x);
	return 0;
}
